package com.demo;

import com.demo.service.DemoService;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:META-INF/spring/dubbo-consumer.xml");
        DemoService demoService = context.getBean(DemoService.class);

        System.out.println(demoService.say("hello"));
    }
}


/**
@SpringBootApplication
public class ConsumerMain {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerMain.class, args);
    }
}
*/